package com.dai.chun.dao.dao;

import java.sql.SQLException;
import java.util.List;

import com.dai.chun.dao.model.Employee;
import com.dai.chun.dao.model.Subsidy;
import com.dai.chun.util.PageSplitUtil;

public interface SubsidyDao {

	int findAllCount() throws SQLException;

	Boolean save(Subsidy subsidy) throws SQLException;

	List<Subsidy> listSubsidy(PageSplitUtil psu);

	int updateSubsidy(Subsidy subsidy) throws SQLException;

	Subsidy findSubsidyById(int subsidy_id);

	int delSubsidy(int subsidy_id) throws SQLException;

	List<Subsidy> listSubsidyByDeptId(PageSplitUtil psu, int dept_id);

	List<Subsidy> getCurSubsidyList(Employee employee);

	List<Subsidy> getCurSubsidyList(int[] effect_subsidys);

}
